//package com.bbx.taxi.client.Fragment.ChangeOrder;
//
//import java.util.ArrayList;
//import java.util.Calendar;
//import java.util.List;
//import java.util.Map;
//
//import com.baidu.location.BDLocation;
//import com.baidu.mapapi.search.geocode.ReverseGeoCodeResult;
//import com.bbx.androidapi.util.ToastUtil;
//import com.bbx.api.sdk.model.passanger.OrderSubmit;
//import com.bbx.api.sdk.model.passanger.Return.Elements;
//import com.bbx.api.sdk.model.passanger.Return.OrderId;
//import com.bbx.api.sdk.model.passanger.Return.MyOrderList.End;
//import com.bbx.api.sdk.model.passanger.Return.MyOrderList.Location;
//import com.bbx.api.sdk.model.passanger.Return.MyOrderList.Locations;
//import com.bbx.api.sdk.model.passanger.Return.MyOrderList.Start;
//import com.bbx.api.sdk.net.base.JsonBuild;
//import com.bbx.api.sdk.net.passeger.conn.ChangeOrderSubmitNet;
//import com.bbx.api.sdk.net.passeger.conn.OrderSubmitNet;
//import com.bbx.taxi.client.Task.BaseAsyncTask;
//import com.bbx.taxi.client.MyApplication;
//import com.bbx.taxi.client.Activity.ContactPersonActivity;
//import com.bbx.taxi.client.Activity.LeaveMessageActivity;
//import com.bbx.taxi.client.Activity.MainActivity;
//import com.bbx.taxi.client.Activity.PlaneActivity;
//import com.bbx.taxi.client.Activity.Address.EditAddressActivity;
//import com.bbx.taxi.client.Activity.Base.BaseFragment;
//import com.bbx.taxi.client.Activity.Menu.PersonalDataActivity;
//import com.bbx.taxi.client.Activity.Menu.SetActivity;
//import com.bbx.taxi.client.Activity.Order.ChangeOrderActivity;
//import com.bbx.taxi.client.Activity.Order.ChangeOrderActivity.OnMenuClickListener;
//import com.bbx.taxi.client.Activity.Order.StartServiceActivity;
//import com.bbx.taxi.client.Activity.login.LoginActivity;
//import com.bbx.taxi.client.Bean.Value;
//import com.bbx.taxi.client.Bean.Attribute.ChangeAttribute;
//import com.bbx.taxi.client.Bean.Extra.AddressMsg;
//import com.bbx.taxi.client.Bean.Extra.ContactPersonMsg;
//import com.bbx.taxi.client.Bean.Extra.MainMsg;
//import com.bbx.taxi.client.DB.Util.DBcolumns;
//import com.bbx.taxi.client.MyApplication.OnLocationResultListener;
//import com.bbx.taxi.official.R;
//import com.bbx.taxi.client.Util.DateFormat;
//import com.bbx.taxi.client.Util.FormatUtil;
//import com.bbx.taxi.client.widget.Dailog.MyAlertDailog;
//import com.bbx.taxi.client.widget.Dailog.MyAlertDailog.onClickLeftListener;
//import com.bbx.taxi.client.widget.Dailog.MyAlertDailog.onClickRightListener;
//import com.bbx.taxi.client.widget.Dailog.MyAlertDailog.onClickSingleListener;
//import com.bbx.taxi.client.widget.pop.CollecteAddressPop;
//import com.bbx.taxi.client.widget.pop.DatePicker;
//import com.bbx.taxi.client.widget.pop.CollecteAddressPop.OnAddressItemClickListener;
//import com.bbx.taxi.client.widget.pop.DatePicker.OnConfirmListener;
//import com.bbx.taxi.client.widget.pop.DatePicker.OnDateConfirmListener;
//import com.bbx.taxi.client.widget.pop.DatePicker.OnDateScrollResultListener;
//import com.bbx.taxi.client.widget.pop.DatePicker.OnPeopleScrollResultListener;
//import com.example.mydatepicker.wheelview.WheelView;
//
//import android.app.Activity;
//import android.content.Context;
//import android.content.DialogInterface;
//import android.content.DialogInterface.OnShowListener;
//import android.content.Intent;
//import android.graphics.Color;
//import android.os.AsyncTask;
//import android.os.Bundle;
//import android.provider.ContactsContract;
//import android.view.View;
//import android.view.View.OnClickListener;
//import android.widget.CheckBox;
//import android.widget.CompoundButton;
//import android.widget.ImageView;
//import android.widget.LinearLayout;
//import android.widget.RelativeLayout;
//import android.widget.TextView;
//import android.widget.CompoundButton.OnCheckedChangeListener;
//
///**
// * 包车出行
// */
//public class ChangeCharteredCarFragment extends BaseFragment implements
//		OnClickListener, OnLocationResultListener, OnMenuClickListener {
//	private RelativeLayout timelayout;
//	private RelativeLayout personlayout;
//	private RelativeLayout layout_plane;
//	private RelativeLayout layout_convert;
//	private RelativeLayout layout_people;
//	private RelativeLayout layout_start_address;
//	private RelativeLayout layout_end_address;
//	private RelativeLayout layout_message;
//	private LinearLayout layout_start_collecte,layout_end_collecte;
//	private TextView tv_time;
//	private TextView tv_plane_numble;
//	private TextView tv_plane_time;
//	private TextView tv_start_address;
//	private TextView tv_end_address;
//	private TextView tv_telephone;
//	private TextView tv_people_number;
//	private TextView tv_message;
//	private ImageView iv__plane_delete;
//	private Activity mContext;
//	private MyApplication mApplication;
//	private CheckBox cb_clause;
//	/** 修改界面的信息临时存储 */
//	private ChangeAttribute change_attribute;
//	private String old_order_id;
//	MyAlertDailog dialog;
//
//	public void onCreateView(Bundle savedInstanceState) {
//		super.onCreate(savedInstanceState);
//		mContext = getActivity();
//		setContentView(R.layout.main_charteredcar);
//		mApplication = MyApplication.getInstance();
//		change_attribute = ChangeAttribute.getInstance();
//		init();
//		initView();
//	}
//
//	public ChangeCharteredCarFragment(String old_order_id) {
//		this.old_order_id = old_order_id;
//	}
//
//	private void init() {
//		dialog = new MyAlertDailog(mContext);
//		dialog.setTitle(mContext.getString(R.string.mydailog_title));
//		dialog.setContent(mContext.getString(R.string.mydailog_content_diff_oncar));
//		dialog.setSingle(mContext.getString(R.string.mydailog_know));
//		dialog.setOnClickSingleListener(new onClickSingleListener() {
//			@Override
//			public void onClickSingle() {
//				dialog.dismiss();
//			}
//		});
//		tv_time = (TextView) findViewById(R.id.tv_time);
//		tv_plane_numble = (TextView) findViewById(R.id.tv_plane_numble);
//		tv_plane_time = (TextView) findViewById(R.id.tv_plane_time);
//		tv_start_address = (TextView) findViewById(R.id.tv_start_address);
//		tv_end_address = (TextView) findViewById(R.id.tv_end_address);
//		tv_telephone = (TextView) findViewById(R.id.tv_telephone);
//		tv_people_number = (TextView) findViewById(R.id.tv_people_number);
//		tv_message = (TextView) findViewById(R.id.tv_message);
//		timelayout = (RelativeLayout) findViewById(R.id.timelayout);
//		personlayout = (RelativeLayout) findViewById(R.id.personlayout);
//		layout_plane = (RelativeLayout) findViewById(R.id.layout_plane);
//		layout_convert = (RelativeLayout) findViewById(R.id.layout_convert);
//		layout_people = (RelativeLayout) findViewById(R.id.layout_people);
//		layout_start_address = (RelativeLayout) findViewById(R.id.layout_start_address);
//		layout_end_address = (RelativeLayout) findViewById(R.id.layout_end_address);
//		layout_message = (RelativeLayout) findViewById(R.id.layout_message);
//		layout_start_collecte=(LinearLayout)findViewById(R.id.layout_start_collecte);
//		layout_end_collecte=(LinearLayout)findViewById(R.id.layout_end_collecte);
//		iv__plane_delete = (ImageView) findViewById(R.id.iv__plane_delete);
//		cb_clause = (CheckBox) findViewById(R.id.cb_clause);
//		timelayout.setOnClickListener(this);
//		personlayout.setOnClickListener(this);
//		layout_start_address.setOnClickListener(this);
//		layout_end_address.setOnClickListener(this);
//		layout_convert.setOnClickListener(this);
////		layout_people.setOnClickListener(this);
//		iv__plane_delete.setOnClickListener(this);
//		layout_message.setOnClickListener(this);
//		layout_start_collecte.setOnClickListener(this);
//		layout_end_collecte.setOnClickListener(this);
//		// mApplication.setOnLocationResultListener(this);
//		ChangeOrderActivity.setOnMenuClickListener(this);
//		cb_clause.setChecked(change_attribute.getIs_mutiple_oncar()==1?true:false);
//		cb_clause.setOnCheckedChangeListener(new OnCheckedChangeListener() {
//			@Override
//			public void onCheckedChanged(CompoundButton v, boolean isCheck) {
//				if (!v.isPressed())
//					return;
//				change_attribute.setIs_mutiple_oncar(isCheck?1:0);
//				if (isCheck) {
//					if (dialog != null && !dialog.isShowing()) {
//						dialog.show();
//					}
//				}
//			}
//		});
//
//	}
//
//	private void initView() {
//		// 时间
//		tv_time.setText(change_attribute.getTime());
//		// 出发地
//		if (change_attribute.getStartName() != null
//				&& !change_attribute.getStartName().equals("")) {
//			tv_start_address.setText(change_attribute.getStartName());
//		}
//		tv_start_address.setText(change_attribute.getStartName());
//		// 目的地
//		if (change_attribute.getEndName() != null
//				&& !change_attribute.getEndName().equals("")) {
//			tv_end_address.setText(change_attribute.getEndName());
//		}
//		// 姓名和电话
//		if (change_attribute.getName() != null
//				&& change_attribute.getTel() != null
//				&& !change_attribute.getTel().equals("")) {
//			tv_telephone.setText((change_attribute.getName().equals("") ? mContext.getString(R.string.i)
//					: change_attribute.getName())
//					+ "-"
//					+ FormatUtil.onFormatTelephone(change_attribute
//							.getTel()));
//		}
//		// 车辆
//		tv_people_number.setText(String.format(mContext.getString(R.string.num_car), change_attribute.getCount_BC()));
//		// 留言
//		if (change_attribute.getMessage_BC() != null) {
//			tv_message.setTextColor(mContext.getResources().getColor(
//					R.color.black));
//			tv_message.setText(change_attribute.getMessage_BC());
//		}
//		// 有航班，取消點擊
//		if (change_attribute.getPlaneStatus() != 0) {
//			layout_end_address.setClickable(false);
//			timelayout.setClickable(false);
//			layout_plane.setVisibility(View.VISIBLE);
//			tv_plane_numble.setText(change_attribute.getPlaneNumble());
//			tv_plane_time.setText(change_attribute.getTime());
//		} else {
//			layout_plane.setVisibility(View.GONE);
//		}
//	}
//
//	@Override
//	public void onClick(View v) {
//		switch (v.getId()) {
//		case R.id.timelayout:
//			// DatePicker.getInstance(mContext).onShow(v, 1);
//			// DatePicker.getInstance(mContext).setOnDateScrollResultListener(
//			// new OnDateScrollResultListener() {
//			// @Override
//			// public void OnDateScrollResult(List<String> list,
//			// WheelView wl_day, WheelView wl_hour, WheelView wl_min) {
//			// switch (wl_day.getCurrentItem()) {
//			// case 0:// 接班机
//			// wl_hour.setCurrentItem(0, true);
//			// wl_min.setCurrentItem(0, true);
//			// break;
//			// case 1://
//			// wl_hour.setCurrentItem(1, true);
//			// wl_min.setCurrentItem(1, true);
//			// break;
//			// case 2:// 今天，滑动到当前时间
//			// long Time =
//			// DateFormat.getTime()+20*60*1000;//加20分上去，是为了不让选择当前时间+20分以下的时间
//			// Calendar mCalendar = Calendar.getInstance();
//			// mCalendar.setTimeInMillis(Time);
//			// int hour=mCalendar.get(Calendar.HOUR_OF_DAY);
//			// int minute=mCalendar.get(Calendar.MINUTE);
//			// if((wl_hour.getCurrentItem()-2)<=(hour)){
//			// wl_hour.setCurrentItem(hour+2,true);
//			// if((wl_min.getCurrentItem()-2)<=(minute)){
//			// wl_min.setCurrentItem(minute+2,true);
//			// }
//			// }
//			// break;
//			// default:
//			// if (wl_hour.getCurrentItem() == 0
//			// || wl_hour.getCurrentItem() == 1) {
//			// wl_hour.setCurrentItem(2, true);
//			// }
//			// if (wl_min.getCurrentItem() == 0
//			// || wl_min.getCurrentItem() == 1) {
//			// wl_min.setCurrentItem(2, true);
//			// }
//			// break;
//			// }
//			// }
//			// });
//			// DatePicker.getInstance(mContext).setOnDateConfirmListener(
//			// new OnDateConfirmListener() {
//			// @Override
//			// public void onDateConfirm(List<String> list,
//			// WheelView wl_day, WheelView wl_hour, WheelView wl_min) {
//			// if(wl_day.getCurrentItem()==0||wl_day.getCurrentItem()==1){
//			// change_attribute.setTime(list.get(wl_day.getCurrentItem()));
//			// tv_time.setText(change_attribute.getTime());
//			// if(wl_day.getCurrentItem()==0){
//			// startActivityForResult(new Intent(mContext,PlaneActivity.class),
//			// ChangeAttribute.REQUEST_CODE_PLANE);
//			// }
//			// return ;
//			// }
//			// change_attribute.setTime(DatePicker.getInstance(mContext).onTimeFormat(list.get(wl_day.getCurrentItem()),
//			// wl_hour.getCurrentItem() - 2, wl_min.getCurrentItem() - 2));
//			// tv_time.setText(change_attribute.getTime());
//			// }
//			// });
//			DatePicker.getInstance(mContext).onShow(v, 2);
//			DatePicker.getInstance(mContext).setOnDateScrollResultListener(
//					new OnDateScrollResultListener() {
//						@Override
//						public void OnDateScrollResult(List<String> list,
//								WheelView wl_day, WheelView wl_hour,
//								WheelView wl_min) {
//							switch (wl_day.getCurrentItem()) {
//							case 0://
//								wl_hour.setCurrentItem(0, true);
//								wl_min.setCurrentItem(0, true);
//								break;
//							case 1:// 今天，滑动到当前时间
//								long Time = DateFormat.getTime() + 20 * 60*1000;// 加20分上去，是为了不让选择当前时间+20分以下的时间
//								Calendar mCalendar = Calendar.getInstance();
//								mCalendar.setTimeInMillis(Time);
//								int hour = mCalendar.get(Calendar.HOUR_OF_DAY);
//								int minute = mCalendar.get(Calendar.MINUTE);
//								if ((wl_hour.getCurrentItem() - 1) <= (hour)) {
//									wl_hour.setCurrentItem(hour + 1, true);
//									if ((wl_min.getCurrentItem() - 1) <= (minute)) {
//										wl_min.setCurrentItem(minute + 1, true);
//									}
//								}
//								break;
//							default:
//								if (wl_hour.getCurrentItem() == 0) {
//									wl_hour.setCurrentItem(1, true);
//								}
//								if (wl_min.getCurrentItem() == 0) {
//									wl_min.setCurrentItem(1, true);
//								}
//								break;
//							}
//						}
//					});
//			DatePicker.getInstance(mContext).setOnDateConfirmListener(
//					new OnDateConfirmListener() {
//						@Override
//						public void onDateConfirm(List<String> list,
//								WheelView wl_day, WheelView wl_hour,
//								WheelView wl_min) {
//							if (wl_day.getCurrentItem() == 0) {
//								change_attribute.setTime(list.get(wl_day
//										.getCurrentItem()));
//								tv_time.setText(change_attribute.getTime());
//								return;
//							}
//							change_attribute.setTime(DatePicker.getInstance(
//									mContext).onTimeFormat(
//									list.get(wl_day.getCurrentItem()),
//									wl_hour.getCurrentItem() - 1,
//									wl_min.getCurrentItem() - 1));
//							tv_time.setText(change_attribute.getTime());
//						}
//					});
//			break;
//		case R.id.layout_people:
//			DatePicker.getInstance(mContext).onShowPeople(v, 12, null);
//			DatePicker.getInstance(mContext).setOnConfirmListener(
//					new OnConfirmListener() {
//						@Override
//						public void onConfirm(List<String> list,
//								WheelView people) {
//							change_attribute.setCount_BC(people.getCurrentItem() + 1);
//							tv_people_number.setText(String.format(mContext.getString(R.string.num_car), change_attribute.getCount_BC()));
//						}
//					});
//			break;
//		case R.id.personlayout:
//			startActivityForResult(
//					new Intent(mContext, ContactPersonActivity.class).putExtra(
//							ContactPersonMsg.extra_contact_name,
//							change_attribute.getName()).putExtra(
//							ContactPersonMsg.extra_contact_phone,
//							change_attribute.getTel()),
//					ChangeAttribute.REQUEST_CODE_PERSON);
//			break;
//		case R.id.layout_start_address:
//			startActivityForResult(new Intent(mContext,
//					EditAddressActivity.class).putExtra(
//					AddressMsg.extra_editaddress, AddressMsg.ADDRESS_START_CHANGE),
//					ChangeAttribute.REQUEST_CODE_START_ADDRESS);
//			break;
//		case R.id.layout_end_address:
//			startActivityForResult(new Intent(mContext,
//					EditAddressActivity.class).putExtra(
//					AddressMsg.extra_editaddress, AddressMsg.ADDRESS_END_CHANGE),
//					ChangeAttribute.REQUEST_CODE_END_ADDRESS);
//			break;
//		case R.id.layout_convert:
//			change_attribute.onSwap();
//			tv_start_address.setText(change_attribute.getStartName());
//			tv_end_address.setText(change_attribute.getEndName());
//			tv_end_address.setTextColor(mContext.getResources().getColor(
//					R.color.black));
//			break;
//		case R.id.iv__plane_delete:
//			layout_plane.setVisibility(View.GONE);
//			layout_end_address.setClickable(true);
//			timelayout.setClickable(true);
//			change_attribute.setPlaneStatus(0);
//			break;
//		case R.id.layout_message:
//			startActivityForResult(new Intent(mContext,
//					LeaveMessageActivity.class).putExtra(MainMsg.extra_message,
//					MainMsg.MESSAGE_CHANGE_BC),
//					ChangeAttribute.REQUEST_CODE_MESSAGE);
//			break;
//		case R.id.layout_start_collecte:
//			CollecteAddressPop.getInstance(mContext).onShow(v);
//			CollecteAddressPop.getInstance(mContext).setOnItemClickListener(new OnAddressItemClickListener() {
//				@Override
//				public void onItemClick(List<Map<String, String>> list,int position) {
//					change_attribute.setStartName(list.get(position).get(DBcolumns.ADDRESS_NAME));
//					change_attribute.setStartCity(list.get(position).get(DBcolumns.ADDRESS_CITY));
//					change_attribute.setStartAddress( list.get(position).get(DBcolumns.ADDRESS_ADDRESS));
//					change_attribute.setStartLongitude(Double.parseDouble(list.get(position).get(DBcolumns.ADDRESS_LONGITUDE)));
//					change_attribute.setStartLatitude(Double.parseDouble(list.get(position).get(DBcolumns.ADDRESS_LATITUDE)));
//					if (!change_attribute.getStartName().equals("")) {
//						tv_start_address.setText(change_attribute.getStartName());
//					}
//				}
//			});
//			break;
//		case R.id.layout_end_collecte:
//			CollecteAddressPop.getInstance(mContext).onShow(v);
//			CollecteAddressPop.getInstance(mContext).setOnItemClickListener(new OnAddressItemClickListener() {
//				@Override
//				public void onItemClick(List<Map<String, String>> list,int position) {
//					change_attribute.setEndName(list.get(position).get(DBcolumns.ADDRESS_NAME));
//					change_attribute.setEndCity(list.get(position).get(DBcolumns.ADDRESS_CITY));
//					change_attribute.setEndAddress( list.get(position).get(DBcolumns.ADDRESS_ADDRESS));
//					change_attribute.setEndLongitude(Double.parseDouble(list.get(position).get(DBcolumns.ADDRESS_LONGITUDE)));
//					change_attribute.setEndLatitude(Double.parseDouble(list.get(position).get(DBcolumns.ADDRESS_LATITUDE)));
//					if (!change_attribute.getEndName().equals("")) {
//						tv_end_address.setText(change_attribute.getEndName());
//					}
//				}
//			});
//			break;
//		}
//	}
//
//	public void onActivityResult(int requestCode, int resultCode, Intent data) {
//		switch (requestCode) {
//		case ChangeAttribute.REQUEST_CODE_PERSON:
//			if (data != null) {
//				change_attribute.setStart_need_sms(data.getIntExtra("need_sms", 1));
//				change_attribute.setTel(data.getStringExtra("telephone"));
//				change_attribute.setName(data.getStringExtra("name"));
//				if (change_attribute.getName() != null
//						&& change_attribute.getTel() != null
//						&& !change_attribute.getName().equals("")
//						&& !change_attribute.getTel().equals("")) {
//					tv_telephone.setText(change_attribute.getName()
//							+ "-"
//							+ FormatUtil
//									.onFormatTelephone(change_attribute
//											.getTel()));
//				}
//			}
//
//			break;
//		case ChangeAttribute.REQUEST_CODE_START_ADDRESS:// 出发地
//			if (data != null) {
//				change_attribute.setStartName(data
//						.getStringExtra(AddressMsg.extra_address_name));
//				change_attribute.setStartCity(data
//						.getStringExtra(AddressMsg.extra_address_city));
//				change_attribute.setStartAddress(data
//						.getStringExtra(AddressMsg.extra_address_address));
//				change_attribute.setStartLongitude(data.getDoubleExtra(
//						AddressMsg.extra_address_longitude, 0));
//				change_attribute.setStartLatitude(data.getDoubleExtra(
//						AddressMsg.extra_address_latitude, 0));
//				if (!change_attribute.getStartName().equals("")) {
//					tv_start_address.setText(change_attribute.getStartName());
//				}
//			}
//			break;
//		case ChangeAttribute.REQUEST_CODE_END_ADDRESS:
//			if (data != null) {
//				change_attribute.setEndName(data
//						.getStringExtra(AddressMsg.extra_address_name));
//				change_attribute.setEndCity(data
//						.getStringExtra(AddressMsg.extra_address_city));
//				change_attribute.setEndAddress(data
//						.getStringExtra(AddressMsg.extra_address_address));
//				change_attribute.setEndLongitude(data.getDoubleExtra(
//						AddressMsg.extra_address_longitude, 0));
//				change_attribute.setEndLatitude(data.getDoubleExtra(
//						AddressMsg.extra_address_latitude, 0));
//				if (!change_attribute.getEndName().equals("")) {
//					tv_end_address.setText(change_attribute.getEndName());
//					tv_end_address.setTextColor(mContext.getResources()
//							.getColor(R.color.black));
//				}
//			}
//			break;
//		case ChangeAttribute.REQUEST_CODE_PLANE:
//			if (data != null) {
//				layout_plane.setVisibility(View.VISIBLE);
//				change_attribute.setPlaneStatus(data.getIntExtra(
//						"plane_status", 0));
//				change_attribute.setTime(data.getStringExtra("plane_time"));
//				change_attribute.setPlaneNumble(data
//						.getStringExtra("plane_numble"));
//				change_attribute.setEndName(data
//						.getStringExtra("plane_end_address"));
//				tv_plane_numble.setText(change_attribute.getPlaneNumble());
//				tv_plane_time.setText(change_attribute.getTime());
//				tv_time.setText(change_attribute.getTime());
//				initView();
//			}
//
//			break;
//		case ChangeAttribute.REQUEST_CODE_MESSAGE:
//			if (data != null) {
//				change_attribute.setMessage_BC(data.getStringExtra("message"));
//				initView();
//			}
//			break;
//		}
//		super.onActivityResult(requestCode, resultCode, data);
//	}
//
//	@Override
//	public void onLocationResult(BDLocation location) {
//		change_attribute.setStartName(location.getCity()
//				+ "-"
//				+ location.getAddrStr().replace(
//						location.getProvince() + location.getCity(), ""));
//		change_attribute.setStartCity(location.getCity());
//		change_attribute.setStartAddress(location.getAddrStr());
//		change_attribute.setStartLongitude(location.getLongitude());
//		change_attribute.setStartLatitude(location.getLatitude());
//		tv_start_address.setText(change_attribute.getStartName());
//		mApplication.removeOnLocationResultListener(this);
//	}
//	@Override
//	public void onLocationResult(ReverseGeoCodeResult result) {
//		String city=result.getAddressDetail().city;
//		String province=result.getAddressDetail().province;
//		String address=result.getAddress();
//		change_attribute.setStartName(city+"-"+address.replace(province+city, ""));
//		change_attribute.setStartCity(city);
//		change_attribute.setStartAddress(address);
//		change_attribute.setStartLongitude(result.getLocation().longitude);
//		change_attribute.setStartLatitude(result.getLocation().latitude);
//		tv_start_address.setText(change_attribute.getStartName());
//		mApplication.removeOnLocationResultListener(this);
//	}
//	@Override
//	public void onLocationFail(boolean isnet) {
//		// TODO Auto-generated method stub
//		
//	}
//	@Override
//	public void onDestroy() {
//		if (mApplication != null)
//			mApplication.removeOnLocationResultListener(this);
//		super.onDestroy();
//	}
//
//	@Override
//	public void OnMenuClick() {
//		initView();
//	}
//}
